package grape.attend.rest.clock.vo;
import grape.base.service.dict.api.IDictService;
import grape.common.rest.vo.BaseIdVo;

import grape.common.service.trans.TransBy;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 打卡设置表
 * </p>
 *
 * @author yangwei
 * @since 2020-05-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="打卡设置表数据响应对象")
public class ClockVo extends BaseIdVo<String> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "类型，字典id")
    private String typeDictId;

    @TransBy(type = IDictService.trans_dictName,byFieldName = "typeDictId")
    @ApiModelProperty(value = "类型，字典名称")
    private String typeDictName;

    @ApiModelProperty(value = "类型第一个时间分钟数")
    private Integer lateArriveMax;

    @ApiModelProperty(value = "类型第二个时间分钟数")
    private Integer earlyLeaveMax;

    @ApiModelProperty(value = "是否下班晚走，第二天可晚到")
    private Boolean isNextDayLate;

    @ApiModelProperty(value = "晚走分钟数")
    private Integer lateLeave;

    @ApiModelProperty(value = "可以晚到分钟数")
    private Integer lateArrive;

    @ApiModelProperty(value = "备注")
    private String remark;


}
